package eventStrategies.view;

import java.util.HashMap;
import java.util.Map;

import view.EViewList;
import view.AbstractView;
import model.IModel;
import eventManager.AppEvent;
import eventStrategies.IEventResponse;
import events.ECodeEventList;

public class InitViewEventStrategy extends IEventResponse {

	private HashMap<EViewList, AbstractView> views;
	
	public InitViewEventStrategy(HashMap<EViewList, AbstractView> views) {
		super(ECodeEventList.INIT_VIEW);
		this.views = views;
	}

	@Override
	public void execute(AppEvent event) {
		//InitViewEvent fullEvent = (InitViewEvent) event;
		
		for (Map.Entry<EViewList, AbstractView> view : views.entrySet()) {
			view.getValue().initView();			
		}
	}

}
